<?php
define('IN',1);
require_once 'common.inc.php';

$aid = (int)$_GET['aid'];
$record  = cmsEntity::GetRow($aid);

$records= cmsEntity::GetListByCid("13");

foreach($records as $key=>$val)
{
	if($val['article_id']==$aid)
	{
		$records[$key]['active'] = " class='ibm-active' ";
	}
	
}

$template->articles = $records;
$template->article = $record;
showMainFrontPage('front/company_detail');